export const getStrokeLineColor = (value) => {
    if (!value) return ''
    if (value <= 30 && value > 0) {
        return 'green'
    } else if (value > 30 && value <= 70) {
        return 'blue'
    } else {
        return 'red'
    }
}
export const formatLocation = (pathname) => {
    return pathname.split('/').splice(1).map(
        (item) => item.replace(/([A-Z])/g, " $1").toLowerCase()).join(' >')
}